<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ES后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__ADMIN__/css/frame.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
    
	
	
</head>
<body class="childrenBody" style="padding-bottom:40px;">

	<div class="layui-form users_list">
	  	<table class="layui-table">
      <thead>
      <tr>
          <th>名称</th>
          <th>标识</th>
          <th>描述</th>
          <th>版本</th>
          <th>作者</th>
          <th>操作</th>
      </tr>
      </thead>
      
      <?php if(!empty($list)): ?>
     <tbody class="users_content">
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                  <td><?php echo $vo['title']; ?></td>
                  <td><?php echo $vo['name']; ?></td>
                  <td><?php echo $vo['describe']; ?></td>
                  <td><?php echo $vo['version']; ?></td>
                  <td><?php echo $vo['author']; ?></td>
                  <td class="col-md-1 text-center">
                      <?php if($vo['is_install'] == '1'): ?>
                      <?php if($vo['has_config'] == '1'): ?>
                      <ob_link><a data-title="设置<?php echo $vo['title']; ?>" data-url="<?php echo es_url('addonConfig', array('name' => $vo['name'])); ?>" class="layui-btn layui-btn-xs users_edit"><i class="fa fa-edit"></i> 设 置</a></ob_link>
                      <?php endif; ?>
                      
                          <ob_link><a class="layui-btn layui-btn-xs layui-btn-danger getbtn"  data-url="<?php echo es_url('addonUninstall', array('name' => $vo['name'])); ?>"><i class="fa fa-remove"></i> 卸 载</a></ob_link>
                         <?php else: ?>
                          <ob_link><a class="layui-btn layui-btn-xs getbtn"  data-title="安装<?php echo $vo['title']; ?>" data-url="<?php echo es_url('addonInstall', array('name' => $vo['name'])); ?>"><i class="fa fa-refresh"></i> 安 装</a></ob_link>
                      <?php endif; ?>
                  </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
        <?php else: ?>
        <tbody><tr class="odd"><td colspan="6" class="text-center" valign="top"><?php echo webconfig('empty_list_describe'); ?></td></tr></tbody>
      <?php endif; ?>
    </table>
	</div>

  


	
	
	<script type="text/javascript" src="__ADMIN__/js/main.js"></script>
		
	
<!--页面JS脚本-->

</body>
</html>